<if condition="$type eq 1">
    <foreach name="datalist" item="vo">

        <div class="weui-cells mt0">
            <!--<div class="weui-cell fs28">-->
                <!--<div class="weui-cell__bd">-->
                    <!--<p>{$vo.snickname}</p>-->
                <!--</div>-->
                <!--<div class="weui-cell__ft">-->
                    <!--<p class="text-default fs28">交易笔数：{$vo.strade_num || default='0'}</p>-->
                <!--</div>-->
            <!--</div>-->
            <div class="weui-cell fs28 border-none">
                <div class="weui-cell__bd">
                    <p class="fs26 text-muted">单价：{$vo.curr_price} $</p>
                    <p class="fs26 text-muted mt10">数量：{$vo.number} ACC</p>
                    <p class="fs26 text-muted mt10">价格：{$vo.total_price} $</p>
                </div>
                <div class="weui-cell__ft">
                    <span class="jy_btn" onclick="confirm_buy({$vo.id})">买入</span>
                </div>
            </div>
        </div>
    </foreach>
</if>

<if condition="$type eq 2">
    <foreach name="datalist" item="vo">
        <div class="weui-cells mt0">
            <!--<div class="weui-cell fs28">-->
                <!--<div class="weui-cell__bd">-->
                    <!--<p>{$vo.bnickname}</p>-->
                <!--</div>-->
                <!--<div class="weui-cell__ft">-->
                    <!--<p class="text-default fs28">交易笔数：{$vo.strade_num || default='0'}</p>-->
                <!--</div>-->
            <!--</div>-->
            <div class="weui-cell fs28 border-none">
                <div class="weui-cell__bd">
                    <p class="fs26 text-muted">单价：{$vo.curr_price} $</p>
                    <p class="fs26 text-muted mt10">数量：{$vo.number} ACC</p>
                    <p class="fs26 text-muted mt10">价格：{$vo.total_price} $</p>
                </div>
                <div class="weui-cell__ft">
                    <span class="jy_btn" onclick="confirm_sell({$vo.id})">卖出</span>
                </div>
            </div>
        </div>
    </foreach>
</if>




